package com.gong.DesignPattern.builder.traditionBuilder;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/10 0010 9:50
 */
public class Computer {

    private String cpu;//必选
    private String ram;//必选
    private String usb;
    private String rom;
    private String keyboard;

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getRam() {
        return ram;
    }

    public void setRam(String ram) {
        this.ram = ram;
    }

    public String getUsb() {
        return usb;
    }

    public void setUsb(String usb) {
        this.usb = usb;
    }

    public String getRom() {
        return rom;
    }

    public void setRom(String rom) {
        this.rom = rom;
    }

    public String getKeyboard() {
        return keyboard;
    }

    public void setKeyboard(String keyboard) {
        this.keyboard = keyboard;
    }

    @Override
    public String toString() {
        return "Computer{" +
                "cpu='" + cpu + '\'' +
                ", ram='" + ram + '\'' +
                ", usb='" + usb + '\'' +
                ", rom='" + rom + '\'' +
                ", keyboard='" + keyboard + '\'' +
                '}';
    }
}
